//
//  NSString+MusicTimeCalculate.m
//  MyMusic
//
//  Created by ioser on 17/5/4.
//  Copyright © 2017年 ioser. All rights reserved.
//

#import "NSString+MusicTimeCalculate.h"

@implementation NSString (MusicTimeCalculate)

+ (instancetype)intervalWithTime:(NSTimeInterval)time
{
    NSInteger min = time / 60;
    NSInteger sec = (int)round(time) % 60;
    return [NSString stringWithFormat:@"%02ld:%02ld",min,sec];
}

@end
